package com.jiangaifeng.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jiangaifeng.common.annotation.Excel;
import com.jiangaifeng.common.core.domain.BaseEntity;

/**
 * post对象 blog_post
 * 
 * @author bug姜
 * @date 2024-12-26
 */
public class BlogPost extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章摘要 */
    @Excel(name = "文章摘要")
    private String description;

    /** 文章附件路径 */
    @Excel(name = "文章附件路径")
    private String path;

    /** 草稿/发布 */
    @Excel(name = "草稿/发布")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setAbstract(String description)
    {
        this.description = description;
    }

    public String getAbstract() 
    {
        return description;
    }
    public void setPath(String path) 
    {
        this.path = path;
    }

    public String getPath() 
    {
        return path;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("abstract", getAbstract())
            .append("path", getPath())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .toString();
    }
}
